<?php
/**
 * Created by b17
 * 2/28/12 9:03 PM
 */

class Autoloader
{
    public static function register()
    {
        spl_autoload_register(array(__CLASS__, 'load'));
    }

    public static function load($name)
    {
        $file = __DIR__ . DIRECTORY_SEPARATOR . $name . '.php';
        if (file_exists($file)) {
            require_once $file;
        }
    }
}
